package com.moyu.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.moyu.data.domain.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author makun
 * @since 2019-02-22
 */
public interface ISysRoleService extends IService<SysRole> {
  List<SysRole> findRolesByUser(Long userId);

  Page<SysRole> selectRolePage(Page<SysRole> sysRolePage);

  /**
   * 为角色授权
   * @param roleId
   * @param nodeIdArr
   */
  void grantPermission(Long roleId, Long[] nodeIdArr);
}
